﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;

namespace ConfExpert.Forms.ImportWizards.GomlekCekiListesi
{
    public partial class DikilenGomleklerOzet : XForm
    {
        public DikilenGomleklerOzet(DateTime Tarih, bool Tumu)
        {
            InitializeComponent();

            gridView1.Init("GetDikilenGomlek", Tarih, Tumu, "Özet", 0);
            gridView1.AddDetailGrid(gridView2, "AtelyeId");
        }

        private void DikilenGomleklerOzet_Load(object sender, EventArgs e)
        {
            gridView1.FormatAsNumber(0, "Toplam");
            gridView1.AddSummary("Toplam");
            gridView2.FormatAsNumber(0, "Toplam");
            gridView2.AddSummary("Toplam");
            gridView1.BestFitColumns();
            gridView2.BestFitColumns();

            splitContainerControl1.AutoSize();
        }
    }
}
